<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
	<meta charset="UTF-8">
	<title>安迅物流-对外开放平台</title>
	<link rel="stylesheet" type="text/css" href="common/easyui/themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="common/easyui/themes/icon.css">
	<link rel="stylesheet" type="text/css" href="common/css/app1.css">
</head>
<body class="easyui-layout">
	<div id="header" data-options="region:'north',border:false" style="height:93px;">
	<form id="subSystemForm" action="" method="POST">
		<input id="Login_SessionId" type="hidden" name="Login_SessionId" value="${Login_SessionId}" />
	   <input id="Login_UserId" type="hidden" name="Login_UserId" value="${SE_ACCOUNT_ID}" />
	   <input id="Login_UserName" type="hidden" name="Login_UserName" value="${SE_ACCOUNT_NAME}" />
	   <input id="Login_CurrentDC" type="hidden" name="Login_CurrentDC" value="${SE_CURRENT_DC}" />
	   <input id="MD_Domain_Name" type="hidden" name="MD_Domain_Name" value="${MD_Domain_Name}" />
	   <input id="SubSystem_Name" type="hidden" name="SubSystem_Name" />
	   <input id="Login_Url" type="hidden" name="Login_Url" value="${SE_LOGIN_URL}" />
	   <input id="defaultPasswordId" type="hidden" value="${defaultPassword}" />
	   <input id="loginPwd" type="hidden" value="${loginPwd}" />
	   <input id="passwordIllegalFlag" type="hidden" value="${passwordIllegalFlag}" />
	   <input id="YN_Domain_Name" type="hidden" name="YN_Domain_Name" value="${YN_Domain_Name}" />
	   <input id="isHistory" name="isHistory" type="hidden" value="${isHistory}" />
	   <input id="HDS_Domain_Name" type="hidden" name="HDS_Domain_Name" value="${HDS_Domain_Name}" />
	   <input id="DRG_Domain_Name" type="hidden" name="DRG_Domain_Name" value="${DRG_Domain_Name}" />
	   <input id="NRF_Domain_Name" type="hidden" name="NRF_Domain_Name" value="${NRF_Domain_Name}" />
	</form>	
		<table width="100%" border="0" cellspacing="0" style="background-image: url(common/images/header_bg.png)">
		  <tr >
		    <td height="56px" colspan="7" valign="middle" nowrap="nowrap">
		    	<img src="common/images/header_logo.png" style=" margin-left:44px;">
				<img src="common/images/header_logo_lmis.png" style=" margin-left:44px;">
		    	<img id="historySubSysId" src="common/images/history.png" style="width: 150px;display:none;">
		    </td>
		    <td align="right" valign="middle" nowrap="nowrap" >
		    	<img src="common/images/icon-calendar.png">
		    </td>
		    <td align="left" valign="middle" nowrap="nowrap" >
		    	<font color="white" ><span id="showToday"> </span></font>
		    </td>
		  </tr>
		  <tr bgcolor="#ffffff">
		    <td width="6%" align="right" valign="middle" nowrap="nowrap">
		    	<c:if test="${sysList!= null && fn:length(sysList) > 0}" >
		    	<img src="common/images/icon-notify.png">
		    	</c:if>
		    </td>		  
		    <td height="28px" width="40%">
	            <div class="scroll">  
	               <ul class="list" style="margin:0px;padding-left:5px">  
	    				<c:forEach items="${sysList}" var="notification" varStatus="es">
	    				    <li><a href="#" style="color:red" onclick="$.LmisLoginUtils.showNotifications('${notification.id}');">${notification.bulletinTitle} </a></li>  
			    		</c:forEach>
	               </ul> 
	            </div>  
            </td>
		    <td width="3%" align="right" valign="middle" nowrap="nowrap">
		    	<img src="common/images/icon-user.png">
		    </td>
		    <td width="10%" align="left" valign="middle" nowrap="nowrap">
		    	<font color="#969696">用户： ${SE_ACCOUNT_NAME}</font>
		    </td>
		    <td width="3%" align="right" valign="middle" nowrap="nowrap">
		    	<div id="historyDividingId">
		    		<img src="common/images/dividingline-gray.png">&nbsp;<img src="common/images/chgPass.png">
		    	</div>
		    </td>
		    <td width="10%" align="left" valign="middle" nowrap="nowrap">
		    	<div id="historyChgPwId">
		    		<a href="#" style="text-decoration:none;" onclick="$.LmisLoginUtils.showChgPassword();"><font color="#969696">修改密码</font></a>
		    	</div>
		    </td>
		    <td width="3%" align="right" valign="middle" nowrap="nowrap">
		    	<div id="currentLogoutIMGId">
		    		<img src="common/images/dividingline-gray.png">&nbsp;<img src="common/images/logout.png">
		    	</div>
		    	<div id="historyLogoutIMGId" style="display:none;">
			    	<img src="common/images/dividingline-gray.png">&nbsp;<img src="common/images/icon-back.png">
		    	</div>
		    </td>
		    <td width="5%" align="left" valign="middle" nowrap="nowrap">
			    <div id="currentLogoutId">
			    	<a href="#" onclick="$.LmisLoginUtils.logout();" style="text-decoration:none;"><font color="#969696">注  销</font></a>
			    </div>
			    <div id="historyLogoutId" style="display:none;">
			    	<a href="#" onclick="$.LmisLoginUtils.logReturn();" style="text-decoration:none;"><font color="#969696">返 回</font></a>
			    </div>
		    </td>
		    <td width="10%">
		    </td>
		  </tr>
		</table>
	</div>
	<div id="footer" data-options="region:'south',split:false" style="height:30px;">
	        Copyright © 2015安迅物流-物流信息管理系统&nbsp;
	   <c:if test="${not empty version}">
	                           当前版本：${version}&nbsp;
	   </c:if>
	   <c:if test="${not empty envirment}">
	                           运行环境：${envirment}
	   </c:if>
	</div>
	<div id="center" data-options="region:'center'" >
		<div id="currentId">
			<table width="100%" border="0" cellspacing="0">
			<tr>
			    <td height="30px" width="20%"></td>
			    <td></td>
			    <td></td>
			    <td></td>
			    <td></td>
			</tr>
			<tr>
			    <td height="28px" width="20%"></td>
				<td>
					<img id="btn_gop" class="btn_img" src="common/images/1.png" onclick="$.LmisLoginUtils.goSubSystem('gop', '${SE_AUTHS.GOP}');"/>
				</td>
				<td>
					<img id="btn_bms" class="btn_img" src="common/images/2.png" onclick="$.LmisLoginUtils.goSubSystem('bms', '${SE_AUTHS.BMS}');"/>
				</td>
				<td>
				    <img id="btn_cfr" class="btn_img" src="common/images/3.png" onclick="$.LmisLoginUtils.goSubSystem('cfr', '${SE_AUTHS.CFR}');"/>
				</td>
				<td>
					<img id="btn_yn"  class="btn_img" src="common/images/4.png" onclick="$.LmisLoginUtils.goSubSystem('bms', '${SE_AUTHS.YN}');"/>
				</td>
			    <td height="28px" width="20%"></td>
			</tr>
			<tr>
			    <td height="28px" width="20%"></td>
				<td>
					<img id="btn_hds" class="btn_img"  src="common/images/5.png" onclick="$.LmisLoginUtils.goSubSystem('bms', '${SE_AUTHS.HDS}');"/>
				</td>
				<td>
					<img id="btn_bi"  class="btn_img"  src="common/images/6.png" onclick="$.LmisLoginUtils.goSubSystem('bi', '${SE_AUTHS.BI}');"/>
				</td>
				<td>
					<img id="btn_map"  class="btn_img"  src="common/images/7.png" onclick="$.LmisLoginUtils.goSubSystem('map', '${SE_AUTHS.MAP}');"/>
				</td>
				<td>
					<img id="btn_app" class="btn_img"  src="common/images/8.png" onclick="$.LmisLoginUtils.goSubSystem('efs', '${SE_AUTHS.EFS}');"/>
				</td>
			    <td height="28px" width="20%"></td>
			</tr>
			<tr>
			    <td height="28px" width="20%"></td>
				<td>
					<img id="btn_das" class="btn_img" src="common/images/9.png" onclick="$.LmisLoginUtils.goSubSystem('das', '${SE_AUTHS.DAS}');"/>
				</td>
				<td>
					<img id="btn_yn" class="btn_img"  src="common/images/10.png" onclick="$.LmisLoginUtils.goSubSystem('si', '${SE_AUTHS.YN}');"/>
				</td>
				<td>
					<img id="btn_yn" class="btn_img"  src="common/images/11.png" onclick="$.LmisLoginUtils.goSubSystem('si', '${SE_AUTHS.YN}');"/>
				</td>
				<td>
					<img id="btn_si" class="btn_img" src="common/images/公告.png" onclick="$.LmisLoginUtils.goSubSystem('si', '${SE_AUTHS.SI}');"/>
				</td>
			</tr>
			<tr>
			    <td height="28px" width="20%"></td>
				<td>
					<img id="btn_app" class="btn_img"  src="common/images/12.png" onclick="$.LmisLoginUtils.goSubSystem('app', '${SE_AUTHS.APP}');"/>
				</td>
			</tr>
		</table>
		</div>
		
	</div>
	<div id="showNotification" class="easyui-window" title="My Window"
		style="width: 600px; height: 300px; position: relative; test-align: center;"
		data-options="closed:'true',iconCls:'icon-tip',modal:true,collapsible: false,minimizable: false,maximizable: false">
		<div
			style="word-break: break-all; overflow-y: auto; height: 75%; width: 90%; font-size: 14; position: relative; left: 5%;top:10px"
			id="notification_content"></div>
		<div style="position: absolute; bottom: 35px; left: 5%;">
				<label id="downNotify"></label><a id="notifyAttachment" href="#"></a>
		</div>
		<div style="position: absolute; bottom: 10px; left: 265px;">
			<input type="button" value="关  闭"
				onclick="$('#showNotification').window('close');" />
		</div>
	</div>
	
	<div id="chgPassword" class="easyui-window" title="修改密码" style="width:400px;height:300px;text-align:center;padding-top:20px;" 
	    data-options="closed:'true',iconCls:'icon-lock',modal:true,collapsible: false,minimizable: false,maximizable: false">
	    <form id="chgPwdForm" action="changePwd.json" method="post">
	    <table width="100%" border=0>
	    	<c:if test="${passwordIllegalFlag}">
	    	<tr>
	    		<td width= "40%" align="right" style="color: red">*</td>
	    		<td align="left" style="color: red">${passwordIllegalMsg}</td>
	    	</tr>
	    	</c:if>
		    <tr>
	    		<td width= "40%" align="right"><label class="error">旧密码：</label></td>
	    		<td align="left"><input size = 15 type="password" name="oldPassword" id="oldPassword" class="easyui-validatebox" data-options="required:true, novalidate:true" value=""/></td>
		    </tr>
		    <tr>
	    		<td height= 10px>&nbsp;</td>
	    		<td>&nbsp;</td>
		    </tr>
		    <tr>
	    		<td width= 40% align="right"><label class="error">新密码：</label></td>
	    		<td align="left"><input size = 15 type="password" name="password1" id="password1" class="easyui-validatebox"  data-options="required:true, novalidate:true" value=""/></td>
		    </tr>
		    <tr>
	    		<td height= 10px>&nbsp;</td>
	    		<td>&nbsp;</td>
		    </tr>
		    <tr>
	    		<td width= 40% align="right"><label class="error">确认密码：</label></td>
	    		<td align="left"><input size = 15 type="password" name="password2" id="password2" class="easyui-validatebox"  required="required" validType="equals['#password1']" data-options="required:true, novalidate:true" value=""/></td>
		    </tr>
		    <tr>
	    		<td height= 20px>&nbsp;</td>
	    		<td>&nbsp;</td>
		    </tr>
		    <tr>
		    	<td colspan=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" value="确  定" onclick="$.LmisLoginUtils.chgPassword();" />&nbsp;&nbsp;&nbsp;&nbsp;
		    	<input type="button" value="返  回" onclick="$('#chgPassword').window('close');" /></td>
		    </tr>
    	</table>
    	</form>
	</div>	
	
<!-- 加载JavaScript -->
	<script type="text/javascript" src="common/easyui/jquery.min.js"></script>
	<script type="text/javascript" src="common/easyui/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="common/js/json2.js"></script>
	<script type="text/javascript" src="common/easyui/locale/easyui-lang-zh_CN.js"></script>
	<script type="text/javascript" src="common/js/jquery.i18n.properties.js"></script>
	<script type="text/javascript" src="common/js/jquery-extensions.js"></script>
	<script type="text/javascript" src="common/js/login/login.js"></script>
	<script type="text/javascript">
		$(".btn_img").css({"border":"0","cursor":"pointer","margin":"9px"});
	</script>
	
</body>
</html>